import Vue from "vue";
import { createPinia, PiniaVuePlugin } from "pinia";
// 引入 pinia-plugin-persistedstate 插件，本地存储
import { createPersistedState } from "pinia-plugin-persistedstate";

import App from "./App.vue";
import router from "./router";

import "./style.css";
import "./plugins/element-ui.js";
import "./plugins/v-chart.js";

Vue.use(PiniaVuePlugin);
const pinia = createPinia();
pinia.use(createPersistedState());

new Vue({
  router,
  pinia,
  render: (h) => h(App),
}).$mount("#app");
